package main

type Dog struct {
	name  string
	color string
}

func (d *Dog) Name() string {
	return d.name
}

func (d *Dog) SetName(name string) {
	d.name = name
}

func (d *Dog) Color() string {
	return d.color
}

func (d *Dog) SetColor(color string) {
	d.color = color
}

func (d Dog) Error() string {
	return "叫错人了！"
}

func NewDog(name string, color string) *Dog {
	return &Dog{name: name, color: color}
}

type bigdog struct {
	Dog
	tizhong string
	shengao string
}

func (d Dog) jiao() string {
	goujiao := "汪汪汪"
	return goujiao
}
